int Replace(char *src, char *dest)
{
    char *p, *q;
    int count = 0;
    p = src;
    q = dest;
    while (*p) 
    {
        if (*p == 't' || *p == 'T') 
        {
            *q++ = *p++ - ('t' - 'e');
            ++count;
        }
        else
        {
            *q++ = *p++;
        }
    }
    *q = 0;
    return count;
}
